﻿<!DOCTYPE HTML>
<html>

<head>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>充值明细</title>
    {include file='common/header'}
    <link rel="shortcut icon" href="clientapp/images/new_images/favicon.ico"/>
    <link href="/static/home/mobile/css/reset_5.css" rel="stylesheet" type="text/css"/>
    <link href="/static/home/mobile/css/style.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" href="/static/home/mobile/css/font-awesome.min.css">
    <link rel="stylesheet" href="/static/home/mobile/css/new_page.css">
    <link href="/static/home/mobile/css/new_style.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="/static/home/mobile/css/layui.css">
    <style>
        body,.mx_list{background:#111;color:#f2f2f2;}
        .mx_list li:after{    background-image: -webkit-linear-gradient(bottom,#333,#333 60%,transparent 60%);}
    </style>
</head>
<body>
<header class="site-header header-fixed">
    <a onclick="window.history.back();" class="back"></a>
    <div class="tit-name">充值记录</div>
    </span>
</header>
<div class="new-gold-detial">
    <div class="update-box mx_list" id="table">
        <ul id="flow">
        </ul>
        <!-- <div class="alipa-box">
            <div class="task-none" style="display: none;text-align: center;">暂无数据</div>
        </div> -->
    </div>
</div>
<script type="text/javascript" src="/static/home/mobile/js/layui/layui.js"></script>
<script type="text/javascript">
$(function(){
        //流加载
        layui.use('flow', function(){
            var flow = layui.flow;
            flow.load({
                    elem: '#table'
                    ,done: function(page, next){
                            var lis = [];
                            $.get('/home/account/rechargelog_ajax?page='+page, function(res){
                                layui.each(res.data.data, function(index, item){
                                    var status = '';
                                    switch(item.status) {
                                        case 0:
                                            status = '待审核';
                                            break;
                                        case 1:
                                            status = '已发送';
                                            break;
                                        case -1:
                                            status = '审核未通过';
                                            break;
                                    }
                                    $("#flow").append('<li><b><i>'+item.credit2+'元</i><time>'+item.create_time+'</time></b><p>'+item.account+'<span>'+status+''+(item.note ? '管理员回复：'+item.note : '')+'</span></p>    </li>');
                                });
                                next(lis.join(''), res.data.length > 0 ? true : false);
                            });
                    }
            });
        });
});
</script>
</body>
</html>